<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="com.colabo.j2ee.web.oaf.menu.action.MenuAction" 
%>
<%
	MenuAction action = new MenuAction();
	String menuJson = action.getAllMenusFromPersistence();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="postContent">
		<table border="1px" cellpadding="1" cellspacing="1" style="width: 100%">
			<tr>
				<td style="width: 100%">
					<%
					if (menuJson != null && menuJson.length() > 0) {
						out.println(menuJson); 
					} else {
						out.println("Can's retrieve anythins!");
					}
					
					%>
				</td>
			</tr>
		</table>
		
	</div>
</body>
</html>